package org.huangrui.javase.api;

import org.junit.Test;

/**
 * @Author hr
 * @Create 2025-11-07 12:22
 **/
public class T07StringCount {
    /**
     * new String 创建了几个对象
     * 2 个
     */
    @Test
    public void test1(){
        String s1 = "尚硅谷";
        String s2 = new String("尚硅谷");
        System.out.println(s1==s2);
    }
}
